/* 清除浏览器默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置字体颜色和默认背景色 */
body {
    padding: 30px;
    font-family: Arial, sans-serif;
    color: #333;
    background: #def7f2;
}

/* 设置标题 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
}

.add-book-link {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background: #007bff;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.5);
    transition: all 0.2s ease-out;
}

.add-book-link:hover {
    background: #0062cc;
    box-shadow: 0 5px 10px rgba(0, 123, 255, 0.5);
    transform: translateY(-2px);
}

/* 设置书表 */
#book-table {
    width: 100%;
    border-collapse: collapse;
}

#book-table th,
#book-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

#book-table th {
    background: #f2f2f2;
    font-size: 16px;
    font-weight: bold;
}

#book-table td:first-child {
    text-align: left;
}

/* 删除按钮样式 */
.delete-btn {
    text-decoration: none;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    background: #dc3545;
    transition: all 0.2s ease-out;
}

.delete-btn:hover {
    background: #be3541;
}
td {
    display: flex;
    justify-content: center;
}

.left-btn, .right-btn {
    width: 50%;
}

.left-btn {
    text-align: right;
}

.right-btn {
    text-align: left;
}

.left-btn button, .right-btn button {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 150px;
    max-width: 100%;
}